package rr.sb.getContent;

import java.io.IOException;

import rr.sb.getContent.parsers.ContentParser;

public class Config {
    private String sourceDir;
    private String destinationDir;
    private ContentParser parser;

    public Config(String sourceDir, String destinationDir, ContentParser parser) {
	super();
	this.sourceDir = sourceDir;
	this.destinationDir = destinationDir;
	this.parser = parser;
    }

    public void start() throws IOException {
	parser.parse(this);
    }

    /**
     * @return the sourceDir
     */
    public String getSourceDir() {
	return sourceDir;
    }

    /**
     * @param sourceDir
     *            the sourceDir to set
     */
    public void setSourceDir(String sourceDir) {
	this.sourceDir = sourceDir;
    }

    /**
     * @return the destinationDir
     */
    public String getDestinationDir() {
	return destinationDir;
    }

    /**
     * @param destinationDir
     *            the destinationDir to set
     */
    public void setDestinationDir(String destinationDir) {
	this.destinationDir = destinationDir;
    }

    /**
     * @return the parser
     */
    public ContentParser getParser() {
	return parser;
    }

    /**
     * @param parser
     *            the parser to set
     */
    public void setParser(ContentParser parser) {
	this.parser = parser;
    }

}
